{% set sum=0 %}
{% for value in line %}
    <rect x="{{pos}}" y="{{maxHeight-value-sum}}" width="100" height="{{value}}" style=" fill:{{colors[loop.index0]}}; stroke:#fff"/>
    {%set sum=sum+value%}
{% endfor %}
